package com.syh.utils;

import java.io.Serializable;
import java.util.List;

/**
 * @author syh
 * @date 2022/12/28-16:04
 * 分页模型
 */
public class PageResult implements Serializable {
    //当前页码
    private Integer pageIndex;
    //总页数
    private Integer totalePage;
    //当前页面数据
    private List result;

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getTotalePage() {
        return totalePage;
    }

    public void setTotalePage(Integer totalePage) {
        this.totalePage = totalePage;
    }

    public List getResult() {
        return result;
    }

    public void setResult(List result) {
        this.result = result;
    }

    public PageResult() {
    }

    public PageResult(Integer pageIndex, Integer totalePage, List result) {
        this.pageIndex = pageIndex;
        this.totalePage = totalePage;
        this.result = result;
    }
}
